package scheduler.core.utils;

/**
 *
 * @author Volodymyr Pogorelov
 */
public class TaskPoolValidationException extends Exception {
    public enum ErrorType { INVALID_PRIORITY,
                            INVALID_LAMBDA,
                            INVALID_NU,
                            INVALID_SIZE
                          }
    private int poolPrior;
    private ErrorType errorType;

    public TaskPoolValidationException(int poolPrior, ErrorType errorType, String message) {
        super(message);
        this.poolPrior = poolPrior;
        this.errorType = errorType;
    }

    public int getPoolPrior() {
        return poolPrior;
    }

    public ErrorType getErrorType() {
        return errorType;
    }
    
}
